package decorator.main;

/**
 * 销售管理系统
 * decorator.main
 * 装饰者模式测试
 * 2018/8/9-9:33
 * 科达科技股份有限公司-版权所有
 * Created by wuqiang on 9:33.
 */
public class MainTest {

    public static void main(String[] args) {
        Beverage beverage=new Espresso();
        beverage=new Mocha(beverage);
        beverage=new Whip(beverage);

        System.out.println(beverage.getDescription()+beverage.cost());


    }
}
